package dale.web.essay.model;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import dale.web.common.model.BaseModel;

public class Essay extends BaseModel {

	private static final long serialVersionUID = 1L;
	
	private Integer no;
	
	@NotNull
	private EssayType type;
	
	@NotEmpty
	private String title;
	
	private String content;
	
	public Essay() {
		super();
	}
	
	public Essay(Integer no) {
		this.no = no;
	}

	public Integer getNo() {
		return no;
	}

	public void setNo(Integer no) {
		this.no = no;
	}

	public EssayType getType() {
		return type;
	}

	public void setType(EssayType type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
